package cn.tx.doubaodemo.common.result;

import lombok.Getter;

/**
 * @author tx
 * @date 2022/8/26 17:03
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "success"),
    BUSINESS_ERROR(500, "业务异常"),

    /**
     * 服务注册相关
     */
    ENV_FORMAT_ERROR(10001, "服务环境参数格式错误"),
    REGISTER_DATA_EMPTY(10002, "服务注册data为空"),
    REGISTER_DATA_PARAM_EMPTY(10003, "服务注册data参数为空")
    ;

    private final int code;

    private final String message;

    ResultCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
